﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using simpleHotel.Business;
using simple.Utilities;

namespace simpleHotel.Web
{
    public partial class Promotion : PageBase
    {
        ObjPromotions promotion = new ObjPromotions();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                loadData();
            }
        }

        private void loadData()
        {
            dlPromotion.DataSource = promotion.getPromotion();
            dlPromotion.DataBind();
        }
    }
}